package cn.iocoder.mall.admin.mapper;

import cn.iocoder.mall.admin.entity.SysParams;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/***
 *@author yinxucun
 *@date 2019-10-30 16:50 
 */
@Mapper
public interface SysParamsMapper extends BaseMapper<SysParams> {


    boolean updateByName(@Param("params") SysParams params);

    @Select("select * from sys_params where type = #{type}")
    List<SysParams> selectByType(@Param("type") Integer messageParamsType);
}
